package team.seekers.hula.question.question.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import team.seekers.hula.question.point.entity.dto.PointAddDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QuestionAddDTO {

    private String userId;

    @NotBlank(message = "标题不能为空")
    private String title;

    @NotBlank(message = "问题背景不能为空")
    private String context;

    @NotNull(message = "请选择提问是否专业")
    private Boolean isSpecial;

    @NotNull(message = "请至少提出一个观点")
    private List<PointAddDTO> pointAddDTOList;// 此观点的point集合，point按照回答数排序

    @ApiModelProperty(value = "问题分到的hula币")
    private Double hulaCoin;

    @ApiModelProperty(value = "问题分到的hula积分")
    private Double hulaScore;

}
